<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{undeterminedRosterList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="moduleName" value="待定名单管理"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<p:panel id="searchResult">
				<f:facet name="header">待定名单管理</f:facet>
				<p:dataTable value="#{undeterminedRosterList.resultList}" var="_undeterminedRoster">
					
					<p:column>
						<f:facet name="header">录入时间</f:facet>
						<h:outputText value="#{_undeterminedRoster.enteringDate}"  >
							<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss"/>
						</h:outputText>
					</p:column>
					
					<p:column>
						<f:facet name="header">录入人员</f:facet>
						<h:outputText value="#{_undeterminedRoster.enteringUser.cnname}" />
					</p:column>
					
					<p:column>
						<f:facet name="header">中介机构</f:facet>
						<h:outputText value="#{_undeterminedRoster.suppliersStr}" />
					</p:column>
					
					<p:column>
						<f:facet name="header">状态</f:facet>
						#{_undeterminedRoster.getAudittedStr()}
					</p:column>
					
					<p:column style="text-align: center;width:200px;">
						<f:facet name="header">操作</f:facet>
						<p:button outcome="UndeterminedRosterEdit.xhtml" value="编辑" rendered="#{empty _undeterminedRoster.auditted &amp;&amp; request.isUserInRole('reporter')}">
							<f:param name="rosterId" value="#{_undeterminedRoster.id}"></f:param>
						</p:button>
						<p:button outcome="UndeterminedRosterAudit.xhtml" value="审核" rendered="#{empty _undeterminedRoster.auditted &amp;&amp; request.isUserInRole('auditor')}">
							<f:param name="rosterId" value="#{_undeterminedRoster.id}"></f:param>
						</p:button>
						<p:button outcome="UndeterminedRosterView.xhtml" value="查看" >
							<f:param name="rosterId" value="#{_undeterminedRoster.id}"></f:param>
						</p:button>
						
					</p:column>
				</p:dataTable>
			</p:panel>
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{undeterminedRosterList}" />
			</ui:include>
		</h:form>
		
		<p:button outcome="UndeterminedRosterEdit.xhtml" value="新增日常考核记录" rendered="#{request.isUserInRole('reporter')}" />
      
   	</ui:define>
</ui:composition>
